package practice;

import java.util.Calendar;
import java.util.Date;

public class Date1 {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        Date date = calendar.getTime();
        System.out.println(date);
        date = new Date(234234235235L);
        calendar.setTime(date);
        System.out.println(calendar.getTime());
        calendar.set(Calendar.MONTH,8);
        System.out.println(calendar.getTime());
       int i = (int)(Math.random()*(10-1)+1);
        System.out.println(i);
    }
}
